/**
 * Milk.java is created by Zachariah at 2012-1-19 下午05:04:19
 */
package com.zack.designPattern.decorator;

/**
 * @author zachariah zzcfrog@gmail.com
 *
 */
public class Milk extends Decorator {

	public Milk(){
		super();
	}
	
	public Milk(Beverage b){
		this.decoratee =b;
	}
	
	@Override
	public int cost() {
		if (this.decoratee != null)
			return this.decoratee.cost() + 3;
		else return 3;
	}

}